﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>数据库设计器 </title>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
    <script src="../../../scripts/boot.js" type="text/javascript"></script>
    <link href="../css/commen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!--     <div style="white-space:nowrap; margin-bottom: 10px;">
        <table>
            <tr>
                <td>
                    <label>表名：</label>
                </td>
                <td>
                    <input name="username" id="tableName" emptyText="请输入..." class="mini-textbox" onblur="removeBlur()" onvaluechanged='valuechanged'/>
                </td>
                <td>
                    <label>中文表名：</label>
                </td>
                <td>
                    <input id="tableChName" emptyText="请输入..." class="mini-textbox"/>
                </td>

            </tr>
        </table>
    </div> -->
    <div style="width:100%;">
        <div class="mini-toolbar" style="border-bottom:0;padding:0px;">
            <table style="width:100%;">
                <tr>
         	       <td  style="white-space:nowrap;">
                   	  <a class="mini-button" iconCls="icon-add" onclick="addRow()" tooltip="增行...">增行</a>
                  	  <a class="mini-button" iconCls="icon-remove" onclick="removeRow()" >删行</a>
                  	  <!--<span class="separator"></span>-->
                  	  <a class="mini-button" iconCls="icon-save" onclick="saveData()">保存</a>
             	   </td>
                </tr>
                <tr>
                   <td style="width:100%;padding:8px 0 4px 0">
                   	 <label>表名：</label>
                   	 <input name="username" id="tableName" emptyText="请输入..." class="mini-textbox" onblur="removeBlur()" onvaluechanged='valuechanged'/>
                  	  <label>中文表名：</label>
                  	  <input id="tableChName" emptyText="请输入..." class="mini-textbox"/>
                   </td>
                </tr>
            </table>
        </div>
    </div>
    <div class="mini-fit">
        <!--oncellendedit="oncellendedit"-->
        <div id="datagrid1" class="mini-datagrid" style="width:100%;height:100%;" idField="id"
             pageSize="20" showPager='false'
             allowCellEdit="true" allowCellSelect="true" multiSelect="true"
             editNextOnEnterKey="true" editNextRowCell="true" 
             oncellcommitedit="OnCellCommitEdit" oncellbeginedit="OnCellBeginEdit"
                >
            <div property="columns">
                <!--<div type="checkcolumn"></div>-->
                <div type="indexcolumn" headerAlign="center" width="20">序号</div>
                <div name="fieId" field="field" headerAlign="center" align="center" width="100">字段(英文)
                    <input property="editor" class="mini-textbox" style="width:100%;" minWidth="200"/>
                </div>
                <div name="remarks" field="fieldCh" headerAlign="center" align="center" width="100">字段(中文)
                    <input property="editor" class="mini-textbox" style="width:100%;" minWidth="200"/>
                </div>
                <div name="type" field="type" headerAlign="center" align="center" width="100">类型
                    <input name="" property="editor" showNullItem="true" class="mini-combobox"
                           url="../data/countrys.txt" textField="text" valueField="id"/>
                </div>
                <div name="value2" field="value2" displayField="value_name" headerAlign="center" align="center" width="100">值
                    <input property="editor" class="mini-textbox" style="width:100%;" minWidth="200"/>
                </div>
                <div type="checkboxcolumn" field="notNull" trueValue="true" falseValue="0" width="100" headerAlign="center">
                    是否为空
                </div>
                <!--<div type="checkboxcolumn" field="notKey" trueValue="true" falseValue="0" width="100" headerAlign="center">-->
                    <!--是否为主键-->
                <!--</div>-->
            </div>

        </div>
    </div>

    <!-- <script src="../js/tableCommen/tableCommen.js"></script> -->
    <script src="../js/table.js" type="text/javascript"></script>
</body>
</html>